package com.code.mq.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.code.mq.service.IUseService;
import org.springframework.stereotype.Component;

@Component
@Service(interfaceClass = IUseService.class)
public class UserService implements IUseService {

    @Override
    public String sayHello(String name) {
        System.out.println("-------------------"+name                   );
     return "hello:"+name;
    }
}
